package com.patterns.demo.observer.first;

import com.patterns.demo.observer.first.observer.Observer1;
import com.patterns.demo.observer.first.observer.Observer2;
import com.patterns.demo.observer.first.subject.MySubject;
import com.patterns.demo.observer.first.subject.Subject;

/**
 * Author: SamGroves
 * <p>
 * Description:
 * <p>
 * Date: 2017/12/19
 */
public class Test {

    public static void main(String[] args) {
        Subject subject = new MySubject();
        subject.add(new Observer1());
        subject.add(new Observer2());

        subject.operation();
    }
}
